mobileLockOrientation
Type
command
Summary
Temporarily prevents orientation changes.
Syntax
mobileLockOrientation
Description
Use the mobileLockOrientation command to temporarily prevent orientation changes.
The mobileLockOrientation command temporarily prevents orientation changes, for example while your application is performing a task and you do not want the orientation to change until the task is complete.
The orientation lock can be nested, and when an unlock request causes the nesting to return to zero, the interface rotates to match the device's current orientation (assuming it is in the set of allowed orientations). You can query the current orientation lock state with the mobileOrientationLocked function.
Examples
mobileLockOrientation
if loading then mobileLockOrientation
Related
message: orientationChanged
command: mobileSetAllowedOrientations, mobileUnlockOrientation
function: mobileDeviceOrientation, mobileOrientationLocked, mobileAllowedOrientations, mobileOrientation
Compatibility and Support
Introduced
LiveCode 4.5.3
OS
ios
android
Platforms
mobile